package com.yc.navy.springmvc.controller;

import java.util.Map;



import com.yc.navy.springmvc.bean.UserInfo;
import com.yc.navy.springmvc.core.annotation.PostMapping;
import com.yc.navy.springmvc.core.annotation.RequestMapping;
import com.yc.navy.springmvc.core.annotation.RequestParam;
import com.yc.navy.springmvc.core.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoInfoController {
	@PostMapping("/add")
	public UserInfo add(UserInfo uf, String code) {
		return uf;
	}
	
	@PostMapping("/finds")
	public Map<String, Object> finds(@RequestParam(value = "") Map<String, Object> map){
		return map;
	}
	
}
